package query

Import Path
	github.com/K-Phoen/grabana/variable/query (on go.dev)

Dependency Relation
	imports one package, and imported by one package

Involved Source Files query.go
Package-Level Type Names (total 4)
/* sort by: | */
Option represents an option that can be used to configure a query. func AllValue(value string) Option func DataSource(source string) Option func DefaultAll() Option func Hide() Option func HideLabel() Option func IncludeAll() Option func Label(label string) Option func Multiple() Option func Refresh(refresh RefreshInterval) Option func Regex(regex string) Option func Request(request string) Option func Sort(order SortOrder) Option func New(name string, options ...Option) *Query func github.com/K-Phoen/grabana/dashboard.VariableAsQuery(name string, options ...Option) dashboard.Option
Query represents a "query" templated variable. Builder sdk.TemplateVar func New(name string, options ...Option) *Query
RefreshInterval represents the interval at which the results of a query will be refreshed. func Refresh(refresh RefreshInterval) Option
SortOrder represents the ordering method applied to values. func Sort(order SortOrder) Option const AlphabeticalAsc const AlphabeticalDesc const AlphabeticalNoCaseAsc const AlphabeticalNoCaseDesc const None const NumericalAsc const NumericalDesc
Package-Level Functions (total 13)
AllValue defines a custom "all" value.
DataSource sets the data source to be used by the query.
DefaultAll selects "All" values by default.
Hide ensures that the variable will not be displayed.
HideLabel ensures that this variable's label will not be displayed.
IncludeAll adds an option to allow all values to be selected.
Label sets the label of the variable.
Multiple allows several values to be selected.
New creates a new "query" templated variable.
Refresh defines the interval in which the values will be refreshed.
Regex defines a filter allowing to filter the values returned by the request/query.
Request defines the query to be executed.
Sort defines the order in which the values will be sorted.
Package-Level Constants (total 11)
const All = "$__all"
AlphabeticalAsc will sort the results by ascending alphabetical order.
AlphabeticalDesc will sort the results by descending alphabetical order.
AlphabeticalNoCaseAsc will sort the results by ascending alphabetical order, case-insensitive.
AlphabeticalNoCaseDesc will sort the results by descending alphabetical order, case-insensitive.
DashboardLoad will refresh the results every time the dashboard is loaded.
Never will prevent the results from being refreshed.
None will preserve the results ordering as returned by the query.
NumericalAsc will sort the results by ascending numerical order.
NumericalDesc will sort the results by descending numerical order.
TimeChange will refresh the results every time the time interval changes.